import { http } from '@/utils/http'
import type { CategoryTopItem, GoodsResult } from '@/apis/type/home'

export const reqCategoryData = () => {
  return http<CategoryTopItem[]>({
    url: '/category/top',
  })
}
export const reqGoodsDetail = (id: string) => {
  return http<GoodsResult>({
    url: `/goods`,
    data: {
      id,
    },
  })
}
